//
//  XQCourseDetailMode.swift
//  XiaoQiQiaoSwift
//
//  Created by tech-lab on 2016/11/30.
//  Copyright © 2016年 校企桥. All rights reserved.
//
import ObjectMapper
import UIKit


class XQCourseDetailCSMode: Mappable {
    var author : String?
    var course_all_time : String?
    var course_intro : String?
    var course_name : String?
    var course_photo : String?
    var course_training_place : String?
    var expect : String?
    var fact : String?
    var id : String?
    var identity : String?
    var keywords : String?
    var member_id : String?
    var outline : String?
    var paid : String?
    var price : String?
    var state_code : String?
    var status : String?
    var store : String?
    var study_num : String?
    var training_company : String?
    var type : String?
    var url : String?
    
    required init?(map: Map) {
        
    }
    
    //映射heades字典中的所有键值
    func mapping(map: Map) {
        
        author <- map["author"]
        course_all_time <- map["course_all_time"]
        course_intro <- map["course_intro"]
        course_name <- map["course_name"]
        course_photo <- map["course_photo"]
        course_training_place <- map["course_training_place"]
        expect <- map["expect"]
        fact <- map["fact"]
        id <- map["id"]
        identity <- map["identity"]
        keywords <- map["keywords"]
        member_id <- map["member_id"]
        outline <- map["outline"]
        paid <- map["paid"]
        price <- map["price"]
        state_code <- map["state_code"]
        status <- map["status"]
        store <- map["store"]
        study_num <- map["study_num"]
        training_company <- map["training_company"]
        type <- map["type"]
        url <- map["url"]
    }
    

}

class XQCourseDetailMSMode: Mappable {
    var avatar : String?
    var member_id : String?
    var pspace : String?
    var user_role : String?
    
    
    required init?(map: Map) {
        
    }
    
    //映射heades字典中的所有键值
    func mapping(map: Map) {
        
        avatar <- map["avatar"]
        member_id <- map["member_id"]
        pspace <- map["pspace"]
        user_role <- map["user_role"]
        
    }
    

}


class XQCourseDetailMode: Mappable {

    var error : NSString?
    var cs : XQCourseDetailCSMode?
    var ms : XQCourseDetailMSMode?
    var ps : [XQHomePositionMode]?

    
    required init?(map: Map) {
        
    }
    
    //映射heades字典中的所有键值
    func mapping(map: Map) {
        
        cs <- map["cs"]
        error <- map["error"]
        ms <- map["ms"]
        ps <- map["ps"]

    }

    
}





